package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单管理对象 tb_user_order
 * 
 * @author hyx
 * @date 2025-02-27
 */
public class CwUserOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单 ID */
    private Long orderId;

    /** 订单商品名 */
    @Excel(name = "订单商品名")
    private String orderName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String orderImg;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 接口ID */
    @Excel(name = "接口ID")
    private Long interfaceInfoId;

    /** 总金额 */
    @Excel(name = "总金额")
    private Double totalAmount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 下单时间(已支付、已发货、已签收、已取消) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间(已支付、已发货、已签收、已取消)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单编号 */
    private String orderNumber;

    /** 是否删除 */
    private Long isDelete;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderName(String orderName) 
    {
        this.orderName = orderName;
    }

    public String getOrderName() 
    {
        return orderName;
    }
    public void setOrderImg(String orderImg) 
    {
        this.orderImg = orderImg;
    }

    public String getOrderImg() 
    {
        return orderImg;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setInterfaceInfoId(Long interfaceInfoId) 
    {
        this.interfaceInfoId = interfaceInfoId;
    }

    public Long getInterfaceInfoId() 
    {
        return interfaceInfoId;
    }
    public void setTotalAmount(Double totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public Double getTotalAmount() 
    {
        return totalAmount;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderName", getOrderName())
            .append("orderImg", getOrderImg())
            .append("userId", getUserId())
            .append("interfaceInfoId", getInterfaceInfoId())
            .append("totalAmount", getTotalAmount())
            .append("paymentMethod", getPaymentMethod())
            .append("orderStatus", getOrderStatus())
            .append("orderTime", getOrderTime())
            .append("orderNumber", getOrderNumber())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
